package cn.stylefeng.guns.modular.hx.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.order.entity.HxOrderOut;
import cn.stylefeng.guns.modular.hx.order.entity.HxOrderPut;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderOutParam;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderPutParam;
import cn.stylefeng.guns.modular.hx.order.model.result.HxOrderOutResult;
import cn.stylefeng.guns.modular.order.model.params.OutOrderParam;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 出库订单表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-08-30
 */
public interface HxOrderOutService extends IService<HxOrderOut> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    void add(HxOrderOutParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    void delete(HxOrderOutParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    void update(HxOrderOutParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    HxOrderOutResult findBySpec(HxOrderOutParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    List<HxOrderOutResult> findListBySpec(HxOrderOutParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-30
     */
     LayuiPageInfo findPageBySpec(HxOrderOutParam param,String condition,Long operateId);

     LayuiPageInfo findqueryPageBySpec(HxOrderOutParam param,String condition,Long operateId);

     HxOrderOut findByThelastone();

	boolean checkCustomerOrder(String orderOutNumber);

    ResponseData getDuoDianExceldata(MultipartFile file, HxOrderOutParam hxOrderOutParam, ResponseData data)throws Exception;

    ResponseData getExceldata(MultipartFile file, HxOrderOutParam hxOrderOutParam, ResponseData data)throws Exception;
	
	boolean saveBatchList(List<HxOrderOutParam> list);

	ResponseData outSingle(HxOrderOutParam hxOrderOutParam, User user, ResponseData data);

    ResponseData outSingleJbsl(HxOrderOutParam hxOrderOutParam, User user, ResponseData data);

    ResponseData btnSubmission3(HxOrderOutParam hxOrderOutParam, User user);

    ResponseData outSingleNew(HxOrderOutParam hxOrderOutParam, User user);

	ResponseData revoke(HxOrderOut hxOrderOut, ResponseData data);

    List<HxOrderOutResult> findlistAllBySpec(HxOrderOutParam hxOrderOutParam, String condition, Long operateId);

    HxOrderOutResult count(HxOrderOutParam hxOrderOutParam, String condition, Long operateId);

	List<HxOrderOutResult> findOrderOutNumberListBySpec(HxOrderOutParam orderOutParam1);

	void deletebyids(List<Integer> deleteolist);

    List<HxOrderOutResult> findlistAllBySpec1(HxOrderOutParam hxOrderOutParam, String condition, Long operateId);

    HxOrderOutResult count1(HxOrderOutParam hxOrderOutParam, String condition, Long operateId);

	List<HxOrderOutResult> findOrderListBySpec(HxOrderOutParam hxop);

    LayuiPageInfo findPageByMap(HxOrderOutParam param, String condition, Long operateId);

    List<HxOrderOutResult> expExcel(HxOrderOutParam hxop, String condition, Long operateId);
}
